﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using YXChatApiService.Core.Common;

namespace YXChatApiService.Core.ChatRecordEntity.DomainManager
{
    public interface IChatRecordManager: IDomainBaseManager<ChatRecord, Guid>
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        Task<ChatRecord> InsertAsync(ChatRecord entity);
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="accountNumber"></param>
        /// <returns></returns>
        List<ChatRecord> GetBuddyAll(string selfNumber,string buddyNumber);
    }
}
